<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>判断页面元素是否可操作</title>
</head>
<body>
    <input id="input1" tpye="text" size="40" value="可操作">
    <input id="input2" tpye="text" size="40" value="不可用" disabled>
    <input id="input3" tpye="text" size="40" value="只读" readonly>
</body>
</html>